package com.cadre.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cadre.entity.Letter;
import com.cadre.entity.User;

public interface LetterMapper {
		
	//写信，添加操作
	public boolean addLetter(Letter letter);

	//查找姓名
	public User SelectByname(User user);
	
	//判断用户名
	public User isexit(@Param("username")String username);

	
	//村长查看所有信件信息

	public List<Letter> selectAllLetter();


	
}
